package com.example.pxxy_news.fragment;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.example.pxxy_news.R;
import com.example.pxxy_news.activity.ArticleManagerActivity;

public class FragmentMine extends Fragment implements OnClickListener{
	LinearLayout ll_article_manager;
	View view;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		view = inflater.inflate(R.layout.a, container, false);
		initView();
		return view;
	}
	private void initView() {
		ll_article_manager = (LinearLayout) view.findViewById(R.id.ll_article_manager);
		ll_article_manager.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.ll_article_manager:
			Intent in = new Intent(getActivity(),ArticleManagerActivity.class);
			startActivity(in);
			break;

		default:
			break;
		}
		
	}
}
